﻿namespace EzDesk.DevHelper.DbMgr.FeedStudio.ToEzML
{
    public class LinkProcessor : RegexReplaceProcessor
    {
        public override string[] RegexStrs
        {
            get
            {
                return new string[] { 
                    @"_(?<attr>((\[).*?(\])))(?<content>.*?)_",
                    @"<ez:target \[(?<content>.*?)\]"
                };
            }
        }

        public override string[] ReplaceStrs
        {
            get
            {
                return new string[] { 
                    @"<ez:target ${attr}><ez:text>${content}</ez:text></ez:target>",
                    @"<ez:target ${content}"
                };
            }
        }
    }
}
